using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using AandEDLL.DataAccess.Visit;

namespace AandEDLL.DataAccess
{
    public class Item
    {
        private int itemID;
        public int ItemID
        {
            get { return itemID; }
            set { itemID = value; }
        }

        private User user;
        public User User
        {
            get { return user; }
            set { user = value; }
        }

        private int categoryID;
        public int CategoryID
        {
            get { return categoryID; }
            set { categoryID = value; }
        }

        private String category;
        public String Category
        {
            get { return category; }
            set { category = value; }
        }

        private String source;
        public String Source
        {
            get { return source; }
            set { source = value; }
        }

        private string itemName;
        public string ItemName
        {
            get { return itemName; }
            set { itemName = value; }
        }

        private DateTime searchDate;
        public DateTime SearchDate
        {
            get { return searchDate; }
            set { searchDate = value; }
        }

        private string description;
        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        private string url;
        public string URL
        {
            get { return url; }
            set { url = value; }
        }

        private decimal price;
        public decimal Price
        {
            get { return price; }
            set { price = value; }
        }

        public void accept(Visitor visit)
        {
            visit.visit(this);
        }
    }
}
